package com.harunasan.carrental.api.serve.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.harunasan.carrental.api.common.domain.entity.BaseInitUserEntity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 梁毅
 * @since 2022-03-07 23:16:15
 */
@Getter
@Setter
@TableName("oms_lend_check")
@ApiModel(value = "OmsLendCheck对象", description = "")
public class OmsLendCheck implements Serializable, BaseInitUserEntity {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("出车检查单id")
    private Long lendCheckId;

    @ApiModelProperty("订单id")
    private Long orderId;

    @ApiModelProperty("车辆id")
    private Long carId;

    @ApiModelProperty("出车日期")
    private LocalDateTime lendDate;

    @ApiModelProperty("车况描述")
    private String description;

    @ApiModelProperty("出发油量/电量")
    private String surplusEnergy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人标识[外键]")
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改人标识[外键]")
    private Long updatedId;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime updatedTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除人标识[外键]")
    private Long deletedId;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("删除时间")
    private LocalDateTime deletedTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("是否删除")
    private Boolean isDeleted = false;


}
